package example.gossip;

public class SendEntry {
    private int from;
    private int to;
    private MessageType type;

    @Override
    public String toString() {
        return "SendEntry{" +
                "from=" + from +
                ", to=" + to +
                ", type=" + type +
                '}';
    }

    public SendEntry(int from, int to, MessageType type) {
        this.from = from;
        this.to = to;
        this.type = type;
    }

    public int getFrom() {
        return from;
    }

    public void setFrom(int from) {
        this.from = from;
    }

    public int getTo() {
        return to;
    }

    public void setTo(int to) {
        this.to = to;
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }
}
